package com.myc.train.business.controller.web;

import com.myc.train.business.req.ConfirmOrderDoReq;
import com.myc.train.business.service.ConfirmOrderService;
import com.myc.train.common.resp.CommonResp;
import jakarta.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/confirm-order")
public class ConfirmOrderController {


    @Autowired
    private ConfirmOrderService service;

    @RequestMapping("/do")
    public CommonResp<Object> doConfirm(@Valid @RequestBody ConfirmOrderDoReq req){
        service.doConfirm(req);
        return new CommonResp<>();
    }


}
